#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import appointmentinfo_blueprint
from api.appointmentInfoResource.appointmentInfoResource import AppointmentInfoResource
from api.appointmentInfoResource.appointmentInfoOtherResource import AppointmentInfoOtherResource

api = Api(appointmentinfo_blueprint)

api.add_resource(AppointmentInfoResource, '/appointmentInfo/<record_id>', '/appointmentInfo', endpoint='AppointmentInfo')


@appointmentinfo_blueprint.route('/appointmentinfo/update/<record_id>', methods=['PUT'], endpoint='AppointmentInfoUpdate')
def update(record_id):
    return AppointmentInfoOtherResource.sensitive_update(record_id)
